#include "SFMLAudioEngine.h"
#include "..\Managers\SFMLSoundManager.h"

SFMLAudioEngine::SFMLAudioEngine(void)
{
	m_soundManager = new SFMLSoundManager;
}

SFMLAudioEngine::~SFMLAudioEngine(void)
{
	delete m_soundManager;
	m_soundManager = nullptr;
}

vn::Sound* SFMLAudioEngine::loadSound(const std::string& p_id)
{
	return m_soundManager->loadSound(p_id);
}

vn::Music* SFMLAudioEngine::loadMusic(const std::string& p_filepath)
{
	return m_soundManager->loadMusic(p_filepath);
}

void SFMLAudioEngine::destroySoundBuffer(const std::string& p_id)
{
	m_soundManager->destroyAudioBuffer(p_id);
}

void SFMLAudioEngine::clear()
{
	m_soundManager->clear();
}
